
{php $listwenzis = \Phpcmf\Service::M()->db->table('module_form')->where('module', MOD_DIR)->where('table', 'son')->get()->getRowArray();}
{php $listwenzi = dr_string2array($listwenzis['setting']);}
{mform module=MOD_DIR form=bisai order=inputtime zpzt=1 tid=$id page=1 pagesize=100 return=t}
<!--图片 IN_tid=$idtid-->
{php $shifouzhongbiaouid = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_bisaizhongbiao')->where('uid', $t.uid)->where('cid', $t.tid)->get()->getRowArray();}
{php $goumaizhongbiaouid = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_bisaizhongbiao')->where('uid', $member.id)->where('leixing', 5)->where('cid', $t.tid)->get()->getRowArray();}
{php $imgs = dr_get_content_img($t.daan);}
<div class="d-col-md-8-10">
	<div class="d-yuanjiao-10 d-kuan d-waigao-20 d-beijing-baise d-bianhua-10 ">
		<!--头部-->
		<div class="d-kuan d-buhuanhang  d-xia-10">
			<!--头部-->
			<div class="d-yuanjiao-10 d-quxian-0">
				<a href="{d_huiyuan_url($t.uid)}">
					<img src="{dr_avatar($t.uid)}" width="40" height="40" class="d-yuanjiao-50"/>
				</a>
			</div>
			<div class="d-zuo-10 d-kuan">
				<div class="d-jiacu d-buhuanhang">
					<div class="d-jiacu d-quxian-0">
						<a href="{d_huiyuan_url($t.uid)}">
						{php $userweixin=\Phpcmf\Service::M()->db->table('member_oauth')->where('uid', $t.uid)->get()->getRowArray();}
						{php $user=dr_member_info($t.uid);}
							{if $user.name}
								{$user.name}
							{elseif $userweixin.nickname}
								{$userweixin.nickname}
							{else}
								{$user.username}
							{/if}
						</a>
					</div>
					{if $t.zuopinshenhe == 1}
						{if $shifouzhongbiaouid['leixing'] == '4'}
							{loop $mcjl $i $v}
								{if $shifouzhongbiaouid['mingci'] == $i}

								<div class="d-zuo-10">
									<div class="d-neikuang-1-5 d-wenzi-10 d-beijing-fenhong d-yuanjiao-5 d-zitiyanse-bai">{$v[1]}</div>
								</div>
								{/if}
							{/loop}
							
						{/if}
					{/if}
					{loop $user.group $tt}
						{if $tt.group_icon}<div class="d-zuo-10"><img src="{$tt.group_icon}" width="60" height="15" class="d-yuanjiao-50"/></div>{/if}
					{/loop}
				</div>
				<div class="d-zitiyanse-hui d-wenzi-12">
					
					{loop $user.group $tt}
						{$tt.group_name}
					{/loop}
					 <!--i class="fa fa-eye  d-zuo-10"></i><span class="d-zuo-10">{$t.hits}</span-->
					<span class="d-wenzi-12 d-zitiyanse-hui" style="margin: 0px 0 0px 15px;">
						{php $ip=\Phpcmf\Service::L('ip')->address($t.inputip);}
						{if $ip == "未知地区"}
						<i class="fa fa-map-marker"></i> 中国
						{else}
						<i class="fa fa-map-marker"></i> {$ip;}
						{/if}
					</span>
				</div>
			</div>
			<div class="d-kuan-160">
				<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
				    <a  id="guanzhu_list_{$t.uid}" data-id="{$t.uid}" class="guanzhu_list">
					    {dr_guanzhu_list($t.uid, $member.id)} 
					</a>
				</div>
			</div>
		</div>
		
		<!--列表内容-->
		<div class="d-kuan d-xia-10 d-quxian-0">
			<!--标题{dr_member_url('login/oauth', ['name' => $name, 'type' => 1, 'id' => $id])}-->
			<a href="{dr_url(MOD_DIR.'/bisai/index', ['id' => $t.id])}"> 
				<!--div class="d-jiacu d-wenzi-16">
					
				{$t.title}
				</div-->
				<!--简介-->
				{if $t.zuopinshenhe == 1}
				<div class="d-chaochu-6 d-wenzi-14 d-list d-zitiyanse-hui d-huanhang {if !$t.title} d-zitiyanse-hei d-wenzi-16{/if}">
				    <span style="color: #0abb29;">【参赛作品】</span>{dr_strcut(dr_clearhtml($t.csnr), 70)}
				</div>
				{else}
				<div class="col-md-3 col-xs-6 col-md-offset-4  col-xs-offset-3 d-wenzi-juzhong d-shang-10" >
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui">
						<a  href="{dr_url(MOD_DIR.'/bisai/index', ['id' => $t.id])}" class=" d-kuai">
							<i class="bi bi-shield-exclamation"></i> 审核中..
						</a>
					</div>
				</div>
				<div class="d-clear"></div>
				{/if}
			</a>
			<div class="d-clear"></div>
			<div class="d-shang-10 d-kuan"></div>
			{if $listwenzi['is_listtupian'] == 1}
			<div id="d-tupian-{$t.id}">
				{if !$t.thumb}
					{template "index-tupian-list.html"}
				{/if}
			</div>
			<script>
			var viewer = new Viewer(document.getElementById('d-tupian-{$t.id}'), {
			  	//url: 'data-kujue',
				toolbar: false,//关闭工具栏
				title: false,//关闭标题栏
				backdrop: true, //点击遮罩层不关闭
				rotatable: false, //图片是否可旋转
				scalable: false, //图片是否可翻转
				tooltip: false, //显示缩放百分比
			  });
			</script>
			{else}
				{if $t.zuopinshenhe == 1}
				<a href="{dr_url(MOD_DIR.'/bisai/index', ['id' => $t.id])}"> 
					{if !$t.thumb}
						{template "index-tupian-list.html"}
					{/if}
				</a>
				{/if}
			{/if}
			<div class="d-clear"></div>
		</div>
		<div class="d-clear"></div>
		{if $t.zuopinshenhe == 1}
		<div class="row">
			{if !$shifouzhongbiaouid && $uid == $member.id}
			<div class="col-xs-12 d-zitiyanse-hui d-quxian-0 d-chaochu">
				
				<div class="col-sm-3 col-xs-6 d-wenzi-juzhong d-shang-10" href="{dr_url(MOD_DIR.'/show/index',['id' => $id,'qid' => $t.tid])}">
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui">
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-uid="{$t.uid}" data-leixing="1" class="tag_bisai_jiangli_jifen d-kuai">
							<i class="fa fa-thumbs-o-up"></i> 鼓励 1积分
						</a>
					</div>
				</div>
				<div class="col-sm-3 col-xs-6 d-wenzi-juzhong d-shang-10" href="{dr_url(MOD_DIR.'/show/index',['id' => $id,'qid' => $t.tid])}">
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui">
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-uid="{$t.uid}" data-leixing="2" class="tag_bisai_jiangli_jifen d-kuai">
							<i class="fa fa-thumbs-o-up"></i> 鼓励 0.1元
						</a>
					</div>
				</div>
				<div class="col-sm-3 col-xs-6 d-wenzi-juzhong d-shang-10" href="{dr_url(MOD_DIR.'/show/index',['id' => $id,'qid' => $t.tid])}">
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui">
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-uid="{$t.uid}" data-leixing="3" class="tag_bisai_jiangli_jifen d-kuai">
							<i class="fa fa-heart-o"></i> 感 谢 参 与
						</a>
					</div>
				</div>
				{if !$shifouzhongbiao}
				<div class="col-sm-3 col-xs-6 d-wenzi-juzhong d-shang-10">
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui" onclick="d_zhongbiao_queren{$t.id}({$t.id},{$id},{$t.uid})">
						
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-leixing="4" data-uid="{$t.uid}" class="d-kuai">
							<i class="fa fa-check-circle-o"></i> 选 择 中 标
						</a>
					</div>
				</div>
				{/if}
				
			</div>
			{else}
			<div class="col-xs-12 d-wenzi-juzhong d-zitiyanse-hui d-quxian-0 d-chaochu">
			<div class="col-md-6 col-xs-8 col-md-offset-3 col-xs-offset-2 d-wenzi-juzhong d-shang-10" href="{dr_url(MOD_DIR.'/show/index',['id' => $id,'qid' => $t.tid])}">
				{if $shifouzhongbiaouid['leixing'] == '1'}
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui">
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-uid="{$t.uid}" data-leixing="1" class=" d-kuai">
							<i class="fa fa-thumbs-o-up"></i> 鼓励 1积分
						</a>
					</div>
				{elseif $shifouzhongbiaouid['leixing'] == '2'}
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui">
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-uid="{$t.uid}" data-leixing="2" class=" d-kuai">
							<i class="fa fa-thumbs-o-up"></i>  鼓励 0.1元
						</a>
					</div>
				{elseif $shifouzhongbiaouid['leixing'] == '3'}
					<div class="d-wenzi-14 d-neikuang-30-30 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-a-hui">
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-uid="{$t.uid}" data-leixing="3" class="d-kuai">
							<i class="fa fa-heart-o"></i>  感 谢 参 与
						</a>
					</div>
				{elseif $shifouzhongbiaouid['leixing'] == '4'}
					{loop $mcjl $i $v}
						{if $shifouzhongbiaouid['mingci'] == $i}
						<div class="d-wenzi-14 d-neikuang-30-30  d-beijing-fenhong d-yuanjiao-50 d-zitiyanse-hui d-a-bai">
							<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-uid="{$t.uid}" data-leixing="4" class=" d-kuai">
								<i class="fa fa-check-circle-o"></i> {$v[1]} 奖励：{$v[2]} {if $jlfs == '1'}{SITE_SCORE} {else} 元{/if}
							</a>
						</div>
						{/if}
					{/loop}
					
				{/if}
			</div>
			</div>
			{/if}
		
		</div>
		{/if}
		<div class="d-clear"></div>
	</div>
	
</div>
<script>
function d_zhongbiao_queren{$t.id}() {

  	//location.reload();
	if ($('.zhongbiaoaniu{$t.id}').is(':hidden')) {
		$('.zhongbiaoaniu{$t.id}').show();
	} else {
		$('.zhongbiaoaniu{$t.id}').hide();
	}
  }
</script>
<div class="d-clear"></div>
<div class="d_zhongbiao_queren zhongbiaoaniu{$t.id}" style="display: none" onclick="d_zhongbiao_queren{$t.id}()">
	<div class="d-jiangli-kuan ">
		<div class="d-bisai-beijing">
			<div class="d-bisai-gao"></div>
			<div class="d-zitiyanse-hongse d-wenzi-12 ">一旦选择无法退回</div>
			
			{if $jlfs == '1'}
				{loop $mcjl $i $v}
					{php $mingci = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_bisaizhongbiao')->where('leixing', 4)->where('cid', $t.tid)->where('mingci', $i)->get()->getRowArray();}
					{if $mingci['mingci'] != $i}
					<div class="d-jiangli-chenggong d-wenzi-14 d-buhuanhang d-neikuang-10 "> 
					<span class="d-zitiyanse-hongse">{$v[1]}</span> 
					中标者将获得
					<span class="d-zitiyanse-hongse" id="d-jiangli-zhi2">{intval($v[2])}</span>
					{SITE_SCORE} <span id="d-qiandao-jingyan"></span> 
						<div class="d-wenzi-14 d-yuanjiao-50 d-zitiyanse-hui d-a-hui" onclick="d_zhongbiao_queren{$t.id}({$t.id},{$id},{$t.uid})">
							<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-leixing="4" data-uid="{$t.uid}" data-jiangli="{intval($v[2])}" data-mingci="{$i}" class="tag_bisai_jiangli_jifen d-kuai" style="color: #ff0000;">
								<i class="fa fa-check-circle-o"></i> 确定
							</a>
						</div>
					</div>
					{else}
					{$v[1]} 已经奖励
					{/if}
				{/loop}
			
			{else}
				{loop $mcjl $i $v}
					{php $mingci = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_bisaizhongbiao')->where('leixing', 4)->where('cid', $t.tid)->where('mingci', $i)->get()->getRowArray();}
					{if $mingci['mingci'] != $i}
						<div class="d-jiangli-chenggong d-wenzi-14 d-buhuanhang d-neikuang-10 ">
						<span class="d-zitiyanse-hongse">{$v[1]}</span> 
						中标者将获得
						<span class="d-zitiyanse-hongse" id="d-jiangli-zhi2">{intval($v[2])}</span>
						元 <span id="d-qiandao-jingyan"></span> 
							<div class="d-wenzi-14 d-yuanjiao-50 d-zitiyanse-hui d-a-hui" onclick="d_zhongbiao_queren{$t.id}({$t.id},{$id},{$t.uid})">
								<a  id="tag_zan_ding_{$id}" data-id="{$id}" data-leixing="4" data-uid="{$t.uid}" data-jiangli="{intval($v[2])}" data-mingci="{$i}" class="tag_bisai_jiangli_jifen d-kuai" style="color: #ff0000;">
									<i class="fa fa-check-circle-o"></i> 确定
								</a>
							</div>
						</div>
					{else}
					{$v[1]} 已经奖励
					{/if}
				{/loop}

			{/if}
			
			
		</div>
	</div>
</div>
{/mform}